<template>
<ScalablePage>
  <!-- 滤池  lc -->
  <div class="left">
    <h2><img src="../assets/psj/gy.png" style="width:100%" /></h2>
    <div class="psj-p psj-txt">
      <p>
        翻板滤池因其反冲洗排水阀板可以0~90°翻转而得名，主要原理是采用不同的滤料来截留水中的悬浮物。
      </p>
      <p>
        翻板滤池的处理规模20万m’/d，翻板滤池分为14格，设计滤速7.8m/h，强制滤速9.1m/h。主要附属构筑物有反冲洗泵房和鼓风机房，反冲洗泵房和鼓风机房为两层建筑，一层为反冲洗泵房，二层为鼓风机房及控制室。
      </p>
      <p>
        滤池承托层采用天然卵石，承托层厚0.45m，滤料采用石英砂及无烟煤双层滤料，滤床高1.50m，滤料上水深H=2.30m。
      </p>
      <p>滤池配有视频监控摄像头5个，24小时监控，另外有专人定期巡回检查。</p>
    </div>
    <h1><img src="../assets/psj/jcsj.png" style="margin-top: 6px;width:100%" /></h1>
    <h2><img src="../assets/psj/cdct2.png" style="margin-top: 6px" /></h2>
    <div class="psj-con">
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.j1 }} <span class="pjs-sub">m³/h</span></div>
          <p class="psj-p">1#管进水流量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.j2 }} <span class="pjs-sub">m³/h</span></div>
          <p class="psj-p">2#管进水流量</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.c1 }} <span class="pjs-sub">mg/L</span></div>
          <p class="psj-p">1#管出水余氯</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">{{ psj.c2 }} <span class="pjs-sub">mg/L</span></div>
          <p class="psj-p">2#管出水余氯</p>
        </div>
      </div>
      <div class="pjs-item">
        <img src="../assets/psj/icon.png" alt="" />
        <div>
          <div class="psj-t">-<span class="pjs-sub">-</span></div>
          <p class="psj-p">滤站出水余氯</p>
        </div>
      </div>
    </div>
  

    <div class="pjs-item" style="margin-top: 20px">
      <div class="psj-pic"></div>
      <div class="psj-pic"></div>
    </div>
  </div>
</ScalablePage>
</template>
<script setup lang="ts">
import ScalablePage from "@/components/ScalablePage.vue"; 
import { ref, onMounted, reactive, toRefs } from "vue";
import { waterApi } from "@/utils/shuiwu/api";

const state = reactive({
  psj: {
    j1: 0,
    j2: 0,
    c1: 0,
    c2: 0,
  },
});

let { psj } = toRefs(state);

onMounted(() => {
  getPsj(635);
});

function getPsj(id: number) {
  waterApi(id).then((res) => {
    let arr = res.rows as any;
    for (let i = 0; i < arr.length; i++) {
      if (arr[i].modelId == 4909) {
        state.psj.j1 = Number(arr[i].value);
      }
      if (arr[i].modelId == 4910) {
        state.psj.j2 = Number(arr[i].value);
      }
      if (arr[i].modelId == 4925) {
        state.psj.c1 = Number(arr[i].value);
      }
      if (arr[i].modelId == 4926) {
        state.psj.c2 = Number(arr[i].value);
      }
    }
  });
}
</script>
<style scoped></style>
